package com.iespring.bean.admin.sys.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Pattern;
import java.util.Date;

/**
 * 创建admin的bo
 * @param null
 * @return
 * @author 杨宇健
 * @since 2022/12/29 13:15
 */

@Data
public class SysAdminCreateBo {
    private Integer id;
    @Length(min = 2, max = 10)
    private String username;
    @Pattern(regexp = "^(?=.*[0-9])(?=.*[a-zA-Z])(.{8,20})$",
    message = "密码长度为8到20位,必须包含字母和数字，字母区分大小写")
    private String password;
    private String avatar;
    private Integer[] roleIds;
}
